import request from '@/utils/request'

// 查询挂号级别列表
export function listRegistrationRank(query) {
  return request({
    url: '/sms/registrationRank/list',
    method: 'get',
    params: query
  })
}

// 查询挂号级别详细
export function getRegistrationRank(id) {
  return request({
    url: '/sms/registrationRank/' + id,
    method: 'get'
  })
}

// 新增挂号级别
export function addRegistrationRank(data) {
  return request({
    url: '/sms/registrationRank',
    method: 'post',
    data: data
  })
}

// 修改挂号级别
export function updateRegistrationRank(data) {
  return request({
    url: '/sms/registrationRank',
    method: 'put',
    data: data
  })
}

// 删除挂号级别
export function delRegistrationRank(id) {
  return request({
    url: '/sms/registrationRank/' + id,
    method: 'delete'
  })
}
